package com.qingcloud.wcenter.api;

import com.qingcloud.wcenter.model.warn.OverLimitWarnModel;
import com.qingcloud.wcenter.model.warn.WarnDataParam;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

@FeignClient(name = "warn-data-api", url = "${healthy.data-url}")
@RequestMapping("/warn")
public interface WarnDataApi {
    @PostMapping(value = "/list")
    List<OverLimitWarnModel> listWarn(WarnDataParam param);
}
